<template>
	<view class="container">
		<uni-section title="评论" sub-title="" type="line">
			<uni-list>
				<uni-list-item :title="comment.comment" :rightText="comment.postdate" note=""></uni-list-item>
			</uni-list>
		</uni-section>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
			comment:{}
			}
		},
		methods: {

		},
	
		onLoad(e) {
			uni.request({
				url: 'http://localhost:8090/foodapp/comment/findone',
				method: 'POST',
				data:{
					"id":e.id
				},
				success: res => {
					if(res.data.success){
						this.comment=res.data.data
						console.log(this.comment);
					}
				}
			});
		}
	}
</script>

<style>
	.container {
		padding: 20px;
		font-size: 14px;
		line-height: 24px;
	}
</style>
